
window.onload=function (){
    var info = getQuery("login");
    if (info=="no"){
        $n("login").innerHTML="请先登陆";
    }

}
function login() {
    axios.get("/user/land",{
        params:{
            userName:$n("userName").value,
            password:$n("password").value
        }
    }).then(resp=>{
        var info = resp.data;
        if (info=="ok"){
            location.href = "/menu/menu.html";
        }else {
            $n("login").innerHTML="登陆失败";
        }
    });
}